/*
 * @Author: lineCode 1145938682@qq.com
 * @Date: 2024-12-16 15:51:12
 * @LastEditors: lineCode 1145938682@qq.com
 * @LastEditTime: 2025-02-18 23:05:46
 * @FilePath: /backend/shorthand-modules/shorthand-modules-content/src/main/java/com/angus/modules/content/repository/MyCollectionRepository.java
 */
package com.angus.modules.content.repository;

import com.angus.modules.content.domain.MyCollection;
import com.angus.modules.content.mapper.MyCollectionMapper;
import com.baomidou.mybatisplus.core.toolkit.Wrappers;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Repository;

import java.util.List;


@Repository
public class MyCollectionRepository extends ServiceImpl<MyCollectionMapper, MyCollection> {
    public List<MyCollection> getMyCollectionList(Long userId) {

        return baseMapper.selectList(Wrappers.lambdaQuery(MyCollection.class)
                .eq(MyCollection::getUserId, userId)
                .eq(MyCollection::getDelFlag, 0));
    }
}
